let info = {
    name: 'yimwu',
    tel: '134xxxxx320'
}
let otherInfo = {
    name: 'yimwu',
    age: '18',
    address: 'gd'
}
//方式1
info.age = otherInfo.age
info.address = otherInfo.address
console.log(info) //{ name: 'yimwu', tel: '134xxxxx320', age: '18', address: 'gd' }

//方式2：扩展运算符
info={...info,...otherInfo}
console.log(info) //{ name: 'yimwu', tel: '134xxxxx320', age: '18', address: 'gd' }

//方式3；object.assign方法
Object.assign(info, otherInfo)
console.log(info)  //{ name: 'yimwu', tel: '134xxxxx320', age: '18', address: 'gd' }